package com.lms.logistics_management_system.controller;


import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lms.logistics_management_system.common.Constants;
import com.lms.logistics_management_system.common.Result;
import com.lms.logistics_management_system.controller.dto.WxCode2SessionRet;
import com.lms.logistics_management_system.entity.Doctor;
import com.lms.logistics_management_system.entity.Item;
import com.lms.logistics_management_system.entity.Reservation;
import com.lms.logistics_management_system.entity.User;
import com.lms.logistics_management_system.exception.ServiceException;
import com.lms.logistics_management_system.mapper.DoctorMapper;
import com.lms.logistics_management_system.mapper.ItemMapper;
import com.lms.logistics_management_system.service.ItemService;
import com.lms.logistics_management_system.service.UserService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

@Slf4j
@RestController
@RequestMapping("/item")
public class ItemController {

    @Autowired
    private ItemService itemService;

    @ApiOperation("获取所有Item信息")
    @GetMapping("/getAllItem")
    public Result getAllItem(){
        return Result.success(itemService.getAllItem());
    }


}


